<div th:if="${not #lists.isEmpty(myList)}">
  <p>Pet Favorites <br />
    Shop for more of your favorite pets here.
  </p>
  <ul>
    <li th:each="product : ${myList}">
      <a th:href="@{/productForm(productId=${product.productId})}"
         th:text="${product.name}"></a>
      (<span th:text="${product.productId}"></span>)
    </li>
  </ul>
</div>